<?php

namespace App\Models\Sys;

use Illuminate\Database\Eloquent\Model;

class Behivor extends Model
{

    protected $table = 'jxt_system_behavior';
    protected $primaryKey = 'id';

    const CREATED_AT = 'create_at';
    const UPDATED_AT = null;

    public static function options()
    {
        $data = static::where('status',1)->select(['icon'])->get()->toArray();

        $row = [];
        foreach ($data as $key=>$val){
            $row[$val['icon']] = "<img style='width:50px;' src='".get_img($val['icon'])."'>";
            //$row[] = $val['icon'];
        }

        return $row;
    }


}
